﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using System.Windows;
using System.Diagnostics;

namespace AmazedSaint.Vingy.ViewModels
{
    public class SearchResult
    {

        public SearchResult()
        {
            OpenCommand = new AsyncDelegateCommand(() =>
            {
                try
                {
                    // launch default browser
                    Process.Start(this.URL);
                }
                catch (Exception exp)
                {
                    MessageBox.Show(exp.Message);
                }

            }
            );
        }

        public ICommand OpenCommand { get; set; }

        public string Title { get; set; }
        public string Description { get; set; }
        public string URL { get; set; }
        public string Date { get; set; }
    }
}
